package org.neuedu.his.service.sys;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.neuedu.his.mapper.SchedulingMapper;
import org.neuedu.his.model.Scheduling;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import java.util.List;

@Service
@Transactional
public class SysScheService {
    @Autowired
    SchedulingMapper schedulingMapper;

    public PageInfo getScheList(String beginDate, String endDate, int pageNum, int pageSize) {

        PageHelper.startPage(pageNum,pageSize);
        List<Scheduling> scheList= schedulingMapper.getScheList(beginDate,endDate);
        PageInfo pageInfo = new PageInfo(scheList);
        return pageInfo;


    }
}
